using UnityEngine;
using System.Collections.Generic;

public class SceneChanger : Scenery
{
	[Header("SceneChanger")]
	public SceneID[] m_Scenes;

	public override void InteractiveClicked()
	{
		InitiativeManager.Instance.current.PerformAction(this, "ChangeFloor", pathForInteraction);
	}
	
	private void ChangeFloor()
	{
		Invoke("ChangeDelay", 0.1f);
	}

	private void ChangeDelay()
	{
		//GameManager.Instance.ChangeFloor(m_Scenes[0]);
		GameObject popup = ScreensManager.Instance.ShowPopup(PopupID.Popup_ChangeScene);
		popup.GetComponent<ChangeScenePopup>().Init(m_Scenes);
	}
}
